import React from "react";
import { BrowserRouter, Routes, useRoutes } from "react-router-dom";
import { ROUTER_LIST } from "./routes";
const Router = () => {
  const RouterView = () => useRoutes(ROUTER_LIST);
  return (
    <BrowserRouter>
      <Routes>
        <RouterView></RouterView>
      </Routes>
    </BrowserRouter>
  );
};
